import App from './App'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
import store from "@/store/index.js"
App.mpType = 'app'
Vue.prototype.$store = store
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

const app = new Vue({
	store,
    ...App
})
app.$mount()
// #endif

Vue.filter('formatDateTime', function (value) {
  if (!value) return ''
  return value.split('T')[0]
})


// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif